<p>
  <b>Title:</b>
  <%=h @proposal.title %>
</p>

<p>
  <b>Description:</b>
  <%=h @proposal.description %>
</p>
<table>


<% @proposal.documents.each do |document| %>
  <tr>
    <td><%=h document.comment %></td>
  </tr>
<% end %>
asdf
<% form_for( @proposal, :url => { :action => "attach_file" }, :html => { :multipart => true}) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :title %><br />
    <%= f.text_field :title %>
  </p>


  <p>
    <%= f.submit 'test create' %>
  </p>
<% end %>

<% form_for( [@proposal, @document], @submit, :url => { :action => :attach_file }, :html => { :multipart => true}) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :comment %><br />
    <%= f.text_field :comment %>
  </p>
  <p>
    <%= f.file_field :document %><br />
  </p>

  <p>
    <%= f.submit 'Create' %>
  </p>
<% end %>

</table>

<%= link_to 'Edit', "/submit/edit/" + @proposal.id.to_s %> |
<%= link_to 'Back', "/submit/new/" %>